package com.baiyue.enums;

/**
 * @author 伍波
 * @date 2024/5/13 17:13
 */
public enum TableSetEnum {
    BOOTHS(0, "卡座"),
    HALL(1, "大厅"),
    PACKET(2, "小包"),
    MEDIUM(3, "中包"),
    LARGE(4, "大包"),
    LUXURY(5, "豪包");

    private Integer code;

    private String value;

    TableSetEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public static TableSetEnum getTableSet(int value) {
        switch (value) {
            case 0:
                return TableSetEnum.BOOTHS;
            case 1:
                return TableSetEnum.HALL;
            case 2:
                return TableSetEnum.PACKET;
            case 3:
                return TableSetEnum.MEDIUM;
            case 4:
                return TableSetEnum.LARGE;
            case 5:
                return TableSetEnum.LUXURY;
            default:
                return null;
        }
    }
}
